package ClientLogger;

import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;


public class ClientLogger {
		public static final Logger clientlogger = Logger.getLogger(ClientLogger.class.getName());
		
	    public static void init() {

	        // Create a new handler that uses the simple formatter
	        try {
	            FileHandler fh = new FileHandler("Clientlog.txt");
	            fh.setFormatter(new SimpleFormatter());
	            clientlogger.addHandler(fh);
	            clientlogger.setUseParentHandlers(false);
	        } catch (IOException e) {
	        	e.printStackTrace();
	        }

	        
	    }

}
